<?php
	$author = $post->getUser(); 

	?>

	<div style="width:900px;padding:10px;text-align:left;background-color:#DFDFDF">

<?php if ($post->getPostType() == 'entrepreneur') { ?>

<span style="font-size:18px;color:#5f5f5f"><img src="/images/icons/lightbulb.png"> Job post: </span><br>


<?php }?>

<?php if ($post->getPostType() == 'developer') { ?>

<span style="font-size:18px;color:#5f5f5f"><img src="/images/icons/lightbulb.png"> Looking for: </span><br>

<?php }?>
		

	</div>
	<Br>

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Title: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getTitle(); ?></span><br>		


<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Description: </span><br>

<div style="font-size:18px;color:#5f5f5f;padding-left:24px;"><?php echo $post->getDescription(); ?></div><br>		

<?php if ($post->getPrivatePost() == false) { ?>
		
<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Author: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getFullName(); ?></span><br>

<?php }?>
<span style="font-size:18px;color:#000"><img src="/images/icons/vcard.png"> Position: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getPosition(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/calendar_view_day.png"> Minimum Commitment: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getPostCommitment(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/money.png"> Basic Salary: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getBasicSalary(); ?></span><br>

<span style="font-size:18px;color:#000"><img src="/images/icons/calendar_view_month.png"> Founded: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getFounded(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/user_suit.png"> Founders: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getFounders(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/text_letter_omega.png"> Stage: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getStage(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/world_link.png"> Url: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getUrl(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/world.png"> Work from: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getWorkfrom(); ?></span><br>
<span style="font-size:18px;color:#000"><img src="/images/icons/chart_pie.png"> Company Equity: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $post->getEquity(); ?></span><br>


<span style="font-size:18px;color:#000"><img src="/images/icons/tag_red.png"> Tags: </span><span style="font-size:18px;color:#5f5f5f">


<?php 

$tags = $post->getworkpoststags2posts();
foreach ($tags as $tag) {

		$Tagss = $tag->getworkpoststags();

		echo link_to($Tagss->getname().', ','/welcome/tags/show/?name='.$Tagss->getname().'');



}

?></span><br>



<br>
	

<?php if ($post->getPrivatePost() == true) { ?>


	<div style="width:900px;padding:10px;text-align:left;background-color:#DFDFDF">


		
<span style="font-size:18px;color:#5f5f5f"><img src="/images/icons/user_delete.png"> Private </span><br>

	</div>



<?php } else { ?>


	<div style="width:900px;padding:10px;text-align:left;background-color:#DFDFDF">


		
<span style="font-size:18px;color:#5f5f5f"><img src="/images/icons/user.png"> About the author: </span><span style="font-size:18px;color:#5f5f5f">
		<?php echo link_to($author->getFullName(),'/user/profile/?id='.$author->getId().''); ?>
</span><br>

	</div>
<br>
			
<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Name: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getFullName(); ?></span><br>	

<?php if ($author->getNickName()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Nickname: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getNickName().'<br>'; }?></span>

<?php if ($author->getWebsite()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Website: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getWebsite(); ?></span><br><?php }?>

<?php if ($author->getLinkedin()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> LinkedIn: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getLinkedin(); ?></span><br><?php }?>

<?php if ($author->getAge()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Age: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getAge(); ?></span><br>	<?php }?>

<?php if ($author->getLocation()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Location: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getLocation(); ?></span><br><?php }?>

<?php if ($author->getState()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> State: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getUserState(); ?></span><br><?php }?>

<?php if ($author->getZipCode()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> ZipCode: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getZipCode(); ?></span><br><?php }?>


<?php if ($author->getMsn()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Msn: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getMsn(); ?></span><br><?php }?>

<?php if ($author->getYahoo()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Yahoo: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getYahoo(); ?></span><br><?php }?>	

<?php if ($author->getIcq()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Icq: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getIcq(); ?></span><br><?php }?>	

<?php if ($author->getSkype()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Skype: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getSkype(); ?></span><br><?php }?>	

<?php if ($author->getGtalk()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Gtalk: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getGtalk(); ?></span><br><?php }?>	

<?php if ($author->getAim()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Aim: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getAim(); ?></span><br><?php }?>
	
<?php if ($author->getTwitter()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Twitter: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getTwitter(); ?></span><br><?php }?>	


<?php if ($author->getType() == 'entrepreneur') { ?>


<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Ventures: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getVentures(); ?></span><br>	
	
<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Raised Money: </span><span style="font-size:18px;color:#5f5f5f"><?php 
if ($author->getRaisedMoney() == '1') {
echo 'Yes';

} else {

echo 'No';

}

?></span><br>	
	
<?php if ($author->getFacebook()) { ?><span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Facebook: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getFacebook(); ?></span><br><?php }?>	

<?php } ?>

<?php if ($author->getType() == 'developer') { ?>

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Ready to relocate: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getRelocation(); ?></span><br>	

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Years of experience: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getYexperience(); ?></span><br>	

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Can work as: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getCanWorkAs(); ?></span><br>	

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Resume Url: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getResumeUrl(); ?></span><br>	

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Expected Equity: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getExpequity(); ?></span><br>	

<span style="font-size:18px;color:#000"><img src="/images/icons/user_gray.png"> Ready to commit to: </span><span style="font-size:18px;color:#5f5f5f"><?php echo $author->getReadyCommitment(); ?></span><br>	

<?php } ?>

<?php } ?>
<br>
<div style="width:900px;padding:10px;text-align:left;background-color:#DFDFDF;height:30px;">


<div style="float:left;">		
<span style="font-size:18px;color:#5f5f5f"><img src="/images/icons/user.png"> Job comments: </span><br>
</div>
<div style="background-color:#EFE0E0;padding:2px;height:18px;float:right;color:black">Private<small> (Private comments will not be displayed to anyone but the job post author)</small></div>


	</div>
<br>
<div id="comments">
<?php

foreach ($postcomments as $comment) {
$commentauthor = $comment->getUser();

if ($comment->getPrivatecomment() == false ) {

?>
<div style="padding:10px;border:1px solid #ccc">
<span style="font-size:16px;color:#5f5f5f">
<?php echo $commentauthor->getFullName(); ?>:<br>
<?php echo $comment->getBody(); ?><BR>
</span>
</div>
<br>
<?php   } else { ?>

<div style="padding:10px;border:1px solid #ccc;background-color:#EFE0E0">
<span style="font-size:16px;color:#5f5f5f">
<?php echo $commentauthor->getFullName(); ?> to you (Private):<br>
<?php echo $comment->getBody(); ?><BR>
</span>
</div>
<br>


<?php } }?>
</div>
<br>	<br>	<br>	
<?php if ($this->getContext()->getUser()->isAuthenticated()) { ?>
<div style="font-size:12px;color:#ccc">Logged as:<?php echo $sf_user->getFullName();?></div>
<span style="font-size:18px;color:#5f5f5f;padding-left:0px;"><?php echo textarea_tag('commentbody', '', 'style="width:350px;height:70px;padding:3px;"') ?>
</span><br>	

<span style="font-size:16px;color:#000"><img src="/images/icons/key.png"> Private to author: </span><span style="font-size:18px;color:#5f5f5f">
<?php echo select_tag('privacy',
  '<option selected="selected" value="0">No</option>
   <option value="1">Yes</option>')
?>



</span><br>	

 <?php echo submit_tag('Post comment','onClick="comment('.$post->getId().')"') ?>
<br><br>

<div style="padding:10px;border:1px solid #ccc;background-color:#EFE0E0">
<span style="font-size:16px;color:#000"><img src="/images/icons/star.png"> Tell someone about this job listing: </span><span style="font-size:18px;color:#5f5f5f"><?php echo input_tag('inviteemail', 'someone@somewhere.com','style="width:350px;" onClick="this.value=\'\';"') ?> <?php echo submit_tag('Send','onClick="sendInvite('.$post->getId().')"') ?><small style="font-size:12px"> (Email addy?)</small> </span> 
	
</div>



 <?php }?>

